home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 726-750 / 750 / sizew / sizew.doc < prev    next >
Text File  |  1995-03-18  |  6KB  |  218 lines

  1.  
  2.                         SizeW  Version 1.5
  3.  
  4.                           written 1992
  5.  
  6.                             by H.P.G
  7.  
  8.                         FREEWARE VERSION
  9.  
  10.  
  11.  
  12. SizeW needs at minimum OS 2.xx Version 37.xx to run.
  13.  
  14. SizeW is a tool, which move and sizes the  current  active  window  with
  15. given Coords.
  16.  
  17. You can specify the Coords via commandline. Or you can  specify  a  file
  18. which includes the Coords.
  19.  
  20. There is no need to write the file by yourselves, because on  this  disk
  21. there should be also the directory SaveW which  does  exactly  this;  it
  22. writes the coords to a specified file.
  23.  
  24. if you`re interrested in SizeW you should also try out SaveW.
  25.  
  26. Legal Stuff:
  27.  
  28.  
  29.         This  program  and  all files come with it, also the docfiles, are
  30.         released as FREEWARE.
  31.  
  32.         this means:
  33.  
  34.             everybody may use SizeW,
  35.  
  36.             everybody may copy SizeW, if:
  37.  
  38.                 1. You copy all included files, see list at the end of the
  39.                    doc file.
  40.                 2. No changes are made,  this  means  the  program and all
  41.                    included files must stay in the original form.
  42.                    Exception: you  may  archieve  it; but in this case you
  43.                               must also archieve the whole package.
  44.                 3. If  you  recompile  it, you have to include a notice to
  45.                    the original author. If you also want to (re)distribute
  46.                    in any new form you have to send me a copy.
  47.                 4. You may not sell SizeW.
  48.                    Execption: you`re  allowed  to  take  a  small copy fee
  49.                               which should not extend 5US$.
  50.                 5. If you want to include SizeW
  51.                    or one of the  included files as a part of a commercial
  52.                    package,  you  must  have  written  permission  of  the
  53.                    author (address see below).
  54.  
  55.  
  56.         I take no warranty or garanty for the function of this program.
  57.         The whole risk of using SizeW stays only by the user.
  58.  
  59. Description:
  60.  
  61. SizeW has the following Parameters:
  62.  
  63.  
  64. Syntax: SizeW [Config=f/K] [Left=X/N] [Top=Y/N] [Width=W/N] [Height=H/N]
  65.  
  66. with
  67.  
  68.     Config | f     String
  69.  
  70.     specifies the file which holds the coords you  want  to  change  the
  71.     window to. If you do not specify any argument to SizeW  ,  it  looks
  72.     for the coords in the 's:window.config' file.
  73.  
  74.         Ex: 1> sizew f Ram:FCoords
  75.  
  76.     ( assuming the file Ram:FCoords exists)
  77.  
  78.  
  79.     Left   | X     Number
  80.  
  81.     If you specify left or X following by a number SizeW tries  to  move
  82.     the window`s leftEdge to this X-coord.
  83.  
  84.         Em: 1> sizew X 100
  85.  
  86.     (SizeW moves the window to the coord 100 pixels from left screen edge)
  87.  
  88.     Top    | Y     Number
  89.  
  90.     If you specify Top or Y following by a number SizeW tries to move the
  91.     window`s TopEdge to this Y-coord.
  92.  
  93.         Em: 1> sizew Y 80
  94.  
  95.     ( SizeW moves the window to the coord 80 pixels from the top )
  96.  
  97.  
  98.     WIDTH  | W     Number
  99.  
  100.     If you specify Width or W following by a number SizeW tries to size
  101.     the window to the given width.
  102.  
  103.         Em: 1> sizew W 320
  104.  
  105.     ( SizeW sizes the width of the window to 320 pixels )
  106.  
  107.  
  108.     HEIGHT | H     Number
  109.  
  110.     If you specify HEIGHT or H following by a number SizeW tries to size
  111.     the window to the given height.
  112.  
  113.         Em: 1> sizew H 200
  114.  
  115.     ( SizeW sizes the height of the window to 200 pixels )
  116.  
  117.      _
  118.     |_|
  119.  
  120.     If you do not specify any arguments to SizeW changes  the  currently
  121.     active window  to  size  an  position  to  the  values  spcified  in
  122.     s:window.config.
  123.  
  124.     You can specify all arguments in any order.
  125.  
  126. General:
  127.  
  128.     In case you specify wrong parameters:
  129.  
  130.     Em:
  131.             sizew W 1000 H 1000
  132.  
  133.     With a standart NSTC-screen you got 640 x 200 pixels. In the example
  134.     above the specified values are impossible. Intuition of the  new  OS
  135.     2.xx Kickstart takes care about this. It corrects the values, so  no
  136.     errors occures. In the example above the window will be moved to the
  137.     coords 0 0 and will then be sized to the maximal size.
  138.  
  139.     Thats the same with too small values. If these  values  are  smaller
  140.     than the for each window defined minsizes Intuition  takes  care  of
  141.     this.
  142.  
  143.     Em:
  144.  
  145.             SizeW W 0 H 20
  146.  
  147.     in a normally Shell-window the size of the window will be changed to
  148.     the minimum.
  149.  
  150.     What happens if you specify wrong values for the X or Y coords too ?
  151.  
  152.     Intuition sets its priority to the width and height instead  of  the
  153.     left or rightedge of the window.
  154.  
  155.     Em:
  156.  
  157.             SizeW X 300 Y 20 W 1000
  158.  
  159.     So the window is not be moved to the coords 300  20  ,  instead  the
  160.     window is moved to X=0 and Y=20 then the  width  of  the  window  is
  161.     sized to the maximum. The height won`t be changed.
  162.  
  163.  
  164. Tips:
  165.  
  166.     If you want to get the same sizes of a shell-window  each  time  you
  167.     start a new shell you must not do this by sizing the window with the
  168.     mouse and moving it to the coords you wish,  but  you  can  add  the
  169.     following line in your file 's:Shell-Startup':
  170.  
  171. folgende Zeilen ein:
  172.  
  173.             SizeW      ; this chages the shell window to the in the file
  174.                        ; s:window.config given values each time a newshell
  175.                        ; opens up. see also SaveW
  176.  
  177. very useful are also the following aliases:
  178.  
  179.  
  180.             alias Full SizeW W 1000 H 1000
  181.             ; sizes the Shell-window to its maximum
  182.  
  183.             alias Small SizeW W 0 H 0
  184.             ; sizes the Shell-window to its minimum
  185.  
  186.  
  187.             to this there is the SaveW directory on this disk with  some
  188.             other useful examples.
  189.  
  190. The END
  191.  
  192.             If you find any bugs please let me know.
  193.  
  194.             Also serious critic and/or ideas are wellcomed.
  195.  
  196. Have fun ...
  197.  
  198.     my address:
  199.  
  200.         Hans-Peter Guenther
  201.         Gruener Weg 5
  202.         W-3501 Fuldatal 2
  203.         Germany
  204.  
  205.     your H.P.G
  206.  
  207. List of files:
  208.  
  209. (If you miss one of the following files your release is incomplete)
  210.  
  211. SizeW            : the binary
  212. SizeW.info
  213. SizeW.doc        : english manual
  214. SizeW.doc.info
  215. SizeW.dok        : german manual
  216. SizeW.dok.info
  217.  
  218.